Version

DescendantsAndSelf(TextSpan,Func<SyntaxNode,Boolean>,Boolean) Method

Gets the list of the SyntaxNode and its descendent nodes.
Syntax
'Declaration
 
Public Overloads Function DescendantsAndSelf( _
   ByVal span As TextSpan, _
   Optional ByVal descendIntoChildrenFilter As Func(Of SyntaxNode,Boolean), _
   Optional ByVal descendIntoIgnoredContent As Boolean _
) As IEnumerable(Of SyntaxNode)

Parameters

span
An optional span to restrict the result. Only descendant nodes intersecting with the span will be included. The span offset is relative to the beginning of the document.
descendIntoChildrenFilter
A filter for indicating whether the list should include any descendents of the specified node.
descendIntoIgnoredContent
Indicates whether to include the nodes from structured ignored content.

Return Value

The list of the SyntaxNode and its descendents.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also